package com.qfedu.stussm.service.intf;

import com.qfedu.stussm.entity.Course;
import com.qfedu.stussm.entity.Score;
import com.qfedu.stussm.vo.PageBeanVo;
import com.qfedu.stussm.vo.R;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface CourseService {
    //    新增
    int add(Course course);
    //    查询
    PageBeanVo selectAll(int page, int limit,String c_name);
    //修改
    int update(Course course);
    //删除
    int del(int c_id);
    //查询全部
    R all();
    //实现文件下载
    void createExcel(HttpServletResponse response) throws IOException;
    /**
     * 实现Excel数据导入 1.上传 2.解析 3.新增*/
    R uploadExcel(MultipartFile file) throws IOException;
}
